<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/WEB-INF/include/common_tag.jsp" %>
<div class="panel panel-default">
	<div class="panel-heading">
		<h3 class="panel-title">新增用户</h3>
	</div>
	<div class="panel-body">
		<form:form cssClass="form-horizontal" role="form" id="form">
			<input type="hidden" id="id" name="id" value="${wxUserV.id}"/>
			<input type="hidden" id="createTimeStr" name="createTimeStr" value="${wxUserV.createTimeStr}"/>
			<div class="form-group">
				<label for="username" class="col-xs-12 col-sm-3 control-label no-padding-right">用户名:</label>
				<div class="col-xs-12 col-sm-4">
					<input type="text" id="username" class="width-100" value="${wxUserV.username}" required=true  maxLength="30" />
					<span class="required">*</span>
				</div>
				
			</div>
	           <div class="space-4"></div>
			<div class="form-group">
				<label for="openId" class="col-xs-12 col-sm-3 control-label no-padding-right">OpenId:</label>
				<div class="col-xs-12 col-sm-4">
					<input type="text" id="openId" class="width-100" value="${wxUserV.openId}" required=true  maxLength="35"  disabled="disabled"/>
					<span class="required">*</span>
				</div>
			</div>
            <div class="space-4"></div>
			<div class="form-group">
				<label for="wxRole.id" class="col-xs-12 col-sm-3 control-label no-padding-right">角色:</label>
				<div class="col-xs-12 col-sm-4">
					<select data-role="roleId" id="wxRole.id" data-value="${wxUserV.wxRole.id}">
						
					</select>
				</div>
				
			</div>			
			<div class="space-4"></div>
			<div class="form-group">
				<label for="mobilePhone" class="col-xs-12 col-sm-3 control-label no-padding-right">手机号码:</label>
				<div class="col-xs-12 col-sm-4">
					<input type="text" id="mobilePhone" class="width-100" value="${wxUserV.mobilePhone}" required=true  maxLength="15" minLength="6" data-type="MobilePhone"/>
					<span class="required">*</span>
				</div>
				
			</div>
			<div class="space-4"></div>
			<div class="form-group">
				<label for="company" class="col-xs-12 col-sm-3 control-label no-padding-right">公司:</label>
				<div class="col-xs-12 col-sm-4">
					<input type="text" id="company" class="width-100" value="${wxUserV.company}" required=true  maxLength="50" />
					<span class="required">*</span>
				</div>
				
			</div>
			<div class="space-4"></div>
			<div class="form-group">
				<label for="address" class="col-xs-12 col-sm-3 control-label no-padding-right">地址:</label>
				<div class="col-xs-12 col-sm-4">
					<input type="text" id="address" class="width-100" value="${wxUserV.address}" maxLength="50"/>
				</div>
				
			</div>
			<div class="space-12"></div>
			<div class="form-group" style="text-align: center;">
				<div class="col-sm-9">
					<button id="returnBtn" type="button" class="btn btn-default btn-sm no-border">
						<i class="fa fa-undo"></i>返回
					</button>
					<button id="saveBtn" type="button" class="btn btn-success btn-sm no-border">
						<i class="fa fa-check"></i>提交
					</button>
				</div>
			</div>
		</form:form>
	</div>
</div>

